<div class="x-list-title">
<table width="100%" border="0" height="100%">
<tr>
	<td align="left">
		<h2>Danh sách loại hợp đồng</h2>
	</td>
	<td align="right">	
		<div class="x-list-options">
			<a href="#Personnel/Contracttype/Add" class="x-button x-button-add">Loại hợp đồng mới</a>
		</div>
	</td>
</tr>
</table>	
</div>
				
<table width="100%" cellpadding="5" class="x-list">
<tr>
	<th width="25" align="center">TT</th>
	<th>
		Tên loại hợp đồng
	</th>
	<th width="80">
		Người tạo
	</th>
	<th width="25" colspan="2">Tác vụ</th>
</tr>
<?php foreach( $this->get('posts') as $k => $a ):?>
<tr>
	<td align="center" style="width:20px">
		<?php _e($k+1);?>
	</td>
	<td width="auto">
	<a><?php _e($a['title'])?></a>
	</td>
	<td align='center'>
	<a href='#User/Info?ID=<?php _e($a['user_id']);?>'><?php _e($a['username']);?></a>
	</td>
	<td width="25" align="center">
		<a href="#Personnel/Contracttype/edit?ID=<?php _e($a['ID']);?>" class='x-edit'></a>
	</td>
	<td width="25" align='center'>
	<a onclick='module_delete("<?php _baseUrl();?>/Personnel/Contracttype/Delete?ID=<?php _e($a['ID']);?>")' class='x-delete'></a>
	</td>
</tr>
<?php endforeach;?>
</table>
	
